<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let obj = {
            name:"宇宙无敌暴龙战士",
            age:19
        }
        console.log(obj.name)


        let obj1 = new Object()
        obj1.name="无敌爆爆龙"
        obj1.age=53
        console.log(obj1.name)


        function Person(name,age){
            this.name=name
            this.age=age
        }
        let p = new Person("宇宙无敌暴龙战士66",43)
        console.log(p)
        let p2 = new Person("无敌爆爆龙66",24)
        p2.sayHi = function(a){
            console.log(a)
        }
        p2.sayHi("宇宙无敌暴龙战士")
    </script>
</body>
</html>